<div id="reslist">
<!--#foreach($resList as $val){#-->
<div class="one">
<!--#if($val[showpic] == 1){#-->
<div class="picpreview"><a href="{@getSmallPic($val[url], 2)@}" rel="lightbox" title="$val[filetitle]"><img src="{@getSmallPic($val[url], 1)@}" /></a></div> 
<!--#}elseif($val[showpic] == 2){#-->
<a href="file.php?rid=$val[rid]&cid=$val[cid]&tid=$val[tid]" title="点击预览 $val[filetitle]"><img src="$val[videopic]" /></a>
			<br />
<!--#} else {#-->
<div class="fileicon"><img src="$val[icon]" /></div>
<!--#}#-->
<div>
<!--#if($val[videostate]==2){#--><img src="images/icon/wait.gif" title="此视频正在转码" align="absmiddle" /><!--#} elseif($videostate > 2){#--><img src="images/icon/notice.png" title="此视频转码失败" align="absmiddle" /><!--#}#--><a href="file.php?rid=$val[rid]&cid=$val[cid]&tid=$val[tid]" title="$val[filetitle]">{@substrs($val[filetitle],20)@}</a></div>
<div class="resdown"><a href="download.php?rid=$val[rid]"><img src="images/icon/disk.png" align="absmiddle" title="下载此文件" /></a> $val[filesize]</div>
			</div>
<!--#}#-->				
			</div>
<link rel="stylesheet" type="text/css" href="css/jquery.lightbox-0.5.css" media="screen" />
<script language="javascript" src="script/jquery.lightbox-0.5.pack.js"></script>
<script language="javascript">
$(function() {
	// Use this example, or...
	$('a[@rel*=lightbox]').lightBox(); // Select all links that contains lightbox in the attribute rel
});
</script>